﻿using Mbl.ParameterizedTest;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NParameterizedTestTests.ObjectBuilders;
using System.Linq;

namespace NParameterizedTestTests.TestCollectionTests
{
    [TestClass]
    public class Empty_collection_tests
    {
        private TestCollection<int, int, int> _collection;

        [TestInitialize]
        public void Setup()
        {
            _collection = new TestCollectionBuilder()
                .Build();
        }
        
        [TestMethod]
        public void An_empty_collection_does_not_contain_any_elements()
        {
            Assert.IsFalse(_collection.Any(), "An empty collection does not contain any elements");
        }

        [TestMethod]
        public void An_empty_collection_evaluates_successfully()
        {
            _collection.Evaluate();
        }
    }    
}
